/**
 * @filename:StockListServiceImpl Dec 6, 2023
 * @project Wonder Vue Admin Api  1.1.0
 * Copyright(c) 2022 Wonder Co. Ltd. 
 * All right reserved. 
 */
package com.wonder.app.service.impl;

import cn.hutool.core.date.DateTime;
import com.vtuzx.core.bean.dto.VtuzxMap;
import com.vtuzx.core.utils.VtuzxUtil;
import com.wonder.admin.service.IVtuzxKingdeeService;
import com.wonder.app.domain.StockList;
import com.wonder.app.domain.Synbd;
import com.wonder.app.mapper.StockListDao;
import com.wonder.app.mapper.SynbdDao;
import com.wonder.app.service.StockListService;
import com.wonder.app.request.StockListRequest;
import com.wonder.app.service.SynbdService;
import com.wonder.bean.kingdee.VtuzxKingdeeCloudClient;
import com.wonder.bean.kingdee.xqc.ConvertDate;
import com.wonder.common.utils.StringUtils;
import com.wonder.common.utils.MessageUtils;
import com.wonder.common.common.AjaxResult;

import java.util.*;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

/**   
 * @Description:TODO(仓库管理服务实现)
 *
 * @version: 1.1.0
 * @author: Wonder
 * 
 */

@Service
public class StockListServiceImpl  extends ServiceImpl<StockListDao, StockList> implements StockListService  {

    /**
     * 验证仓库管理信息
     * 
     * @param stockList
     * @param type
     * @return String
     */
	@Autowired
	private StockListDao stockListDao;
	@Autowired
	private IVtuzxKingdeeService kingdeeService;


	@Autowired
	private StockListService stockListService;

	@Autowired
	private ConvertDate convertDate;
	@Autowired
	private SynbdDao synbdDao;
	@Autowired
	private SynbdService synbdService;
    @Override
    public String validate(StockList stockList,String type){
    
    
       return "";
    }
    
    
    /**
	 * Description:仓库管理分页返回
	 * @param request //检索条件
	 * @param page //分页参数
	 * @return IPage<StockList>   //分页记录
	 */
	@Override 
	public IPage<StockList> selectList(StockListRequest request, Page<StockList> page){
	    LambdaQueryWrapper<StockList> lambdaQueryWrapper = new LambdaQueryWrapper<>();
	    if (null != request.getFname()){
	    	lambdaQueryWrapper.like(StockList::getFName,request.getFname());
		}
		if (null != request.getFnumber()){
			lambdaQueryWrapper.like(StockList::getFNumber,request.getFnumber());
		}
	    
        
		Page<StockList> selectPage = this.baseMapper.selectPage(page, lambdaQueryWrapper);
		return selectPage;
    }


        
    
	
}